﻿using Basic.FormRemoteModel.PageCalculate;
using Basic.FormRemoteModel.PageCalculate.Model;
using Basic.UserFormService.Page.Interface;
using WeDonekRpc.Client.Interface;

namespace Basic.UserFormService.RpcEvent
{
    internal class CalculateChartEvent : IRpcApiService
    {
        private readonly IChartCalculate _Service;

        public CalculateChartEvent ( IChartCalculate service )
        {
            this._Service = service;
        }

        public ChartResult CalculateChart ( CalculateChart obj )
        {
            return this._Service.Calculate(obj.Param);
        }
    }
}
